#include <stdio.h>
#include <string.h>

/* main function to copy strings*/

int main(int argc, char *argv[])
{

    if (argc == 3)
    {
        if (strcmp(argv[0], "myencode") == 0)
        {
            if (strcmp(argv[1], "-e") == 0)
            {
                /* Check user input against files in computer*/
                FILE *fp;
                fp = fopen(argv[2], "r+");
                if (fp != NULL)
                {
                    /* your stuff goes here, don't forget to close
                       the file with fclose(fp)
                    */
                }
                else
                {
                    printf("Error: could not open file\n");
                }
            }
        }
        return 0;
    }
}